<template>
  <div id="app">
    <v-home></v-home>
    <br>
    <v-news></v-news>
    <br>
    <v-life></v-life>
  </div>
</template>
<script>
//引入组件
import Home from './components/Home.vue';
import News from './components/News.vue'
import Life from './components/Life.vue'
export default {
  data(){
    return{
      msg:'你好Vue'
    }
  },
  components:{
    'v-home':Home,
    'v-news':News,
    'v-life':Life
  },
  mounted(){
    console.log('这是一个声明周期函数');
  }
}
</script>


